Treasure Hunt Trace
library(tmap)
package ‘tmap’ was built under R version 3.4.4
The location of Tube / Rail Stations in London
#You can have this for free, R fans. Reading XML can be a pain in R, you will need the 'layer' information, which is contained in the <name> tag in a KML file...
#install.packages("rgdal")
library(rgdal)
tubestations <- readOGR("https://www.doogal.co.uk/LondonStationsKML.ashx", "London stations with zone information")
Treasure Hunt Locations
library(tidyverse)
huntaddresses <- read_csv("https://www.dropbox.com/s/v66l4cx7aia9jlo/huntLocations.csv?raw=1")
Geocode with Google Maps API
Merge City of London Wards into a Single zone
library(sf)
library(plyr)
LondonWards_new <- st_union(LondonWardsSF, cityagg)
attribute variables are assumed to be spatially constant throughout all geometries